import instance from './request'

// 获取热销产品
export const getHotGoods = () => {
  return instance({
    method: 'post',
    url: 'goods/getHotGoods'
  })
}
//  首页顶部轮播图
export const getGoodsType = () => {
  return instance({
    method: 'post',
    url: 'goods/getGoodsType'
  })
}
//  获取商品分类
export const getFinsBanner = () => {
  return instance({
    method: 'post',
    url: 'goods/finsBanner'
  })
}
//商品列表
export const getGoodList = goodList => {
  return instance({
    method: 'post',
    url: 'goods/goodsList',
    data: goodList
  })
}
// goods/getGoodsInfo  获取商品详情
export const getGoodsInfo = goodId => {
  return instance({
    method: 'post',
    url: 'goods/getGoodsInfo',
    data: {
      goodId
    }
  })
}
// 192.168.2.117:92/Index/goods/finsBanner
// url: 'goods/getHotGoods' //商品
// url: 'goods/getGoodsType'
// url: 'goods/getGoodsInfo'
// url: 'goods/getGoodsType' //商品分类
// url: 'cloud_depot/addDepot' //云仓
// url: 'cloud_depot/depotList', //200
// url: 'pick_up_order/pickOrderList' //400  提货订单
// url: 'pick_up_order/getOrderStatus' //200
// url: 'pick_up_order/findOrderInfo' //400
// url: 'pick_up_order/pickAddOrder' //400
// url: 'shipping_address/editAddress' //400
